Skip to content

Instantly share code, notes, and snippets.

P2P Ridehailing App — Claude Code Instructions

You are building a fully decentralized peer-to-peer ridehailing mobile app. Zero centralized servers. The entire system runs on user devices and the Solana blockchain.

Core Flow

  1. A rider opens the app, sets a destination, and the app calculates a fare client-side using Haversine distance.
  2. The rider posts a ride request on-chain containing a blinded zone ID (ZK proof of zone membership), the offered fare, and escrowed SOL.
  3. Nearby drivers discover the request via libp2p GossipSub and on-chain queries.
  4. Drivers submit offers on-chain — they can accept the rider's fare or counter-offer (capped at 2x the rider's price).
@alserom
alserom / poe-dust.csv
Last active March 15, 2026 18:29
POE 3.25 Kingsmarch - Unique items list for disenchanting
name baseType dustVal dustValIlvl84 dustValIlvl84Q20 dustPerSlot w h slots link
Original Sin Amethyst Ring 1128.890000 2257780 2709336 2257780 1 1 1 https://poedb.tw/us/Original_Sin
Headhunter Leather Belt 891.160000 1782320 2138784 891160 2 1 2 https://poedb.tw/us/Headhunter
Mageblood Heavy Belt 891.160000 1782320 2138784 891160 2 1 2 https://poedb.tw/us/Mageblood
Defiance of Destiny Paua Amulet 891.160000 1782320 2138784 1782320 1 1 1 https://poedb.tw/us/Defiance_of_Destiny
Reefbane Fishing Rod 851.240000 1702480 2042976 425620 1 4 4 https://poedb.tw/us/Reefbane
Replica Shroud of the Lightless Carnal Armour 791.780000 1583560 1900272 263926 2 3 6 https://poedb.tw/us/Replica_Shroud_of_the_Lightless
Stasis Prison Carnal Armour 791.780000 1583560 1900272 263926 2 3 6 https://poedb.tw/us/Stasis_Prison
The Squire Elegant Round Shield 768.720000 1537440 1844928 256240 2 3 6 https://poedb.tw/us/The_Squire
Rakiata's Dance Engraved Greatsword 768.720000 1537440 1844928 192180 2 4 8 https://poedb.tw/us/Rakiatas_Dance
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@mkaminsky11
mkaminsky11 / wl_monitor.sh
Last active March 15, 2026 18:29
Enables monitor mode for wl driver(Broadcom)
#!/bin/sh
# so, by default, monitoring and injection cannot be used with Broadcom wl wifi drivers (such as those for Macs)
# this makes it impossible to do stuff like crack wifi passwords with aircrack-ng
# fortunately, there is a solution burried in https://www.broadcom.com/docs/linux_sta/README.txt
echo 1 > /proc/brcm_monitor0 #enables monitor mode. That's it!
# prism0 is now like "mon0" (monitor mode)
@ongkiii
ongkiii / IPA-Sources.md
Last active March 15, 2026 18:30
REPOS/TELEGRAM CHANNELS LIST BY u/angkitbharadwaj
@AdamWagner
AdamWagner / LevDis.gs
Created November 19, 2018 20:40
Levenshtein Distance Function for Google Sheets
//
// Levenshtein Distance Function for Google Sheets
//
// This function calculates de Levenshtein Distance (or Edit Distance) between two strings.
// I used the algorith and code from Wikipedia (https://en.wikipedia.org/wiki/Levenshtein_distance)
// as a reference and just adjusted the code to be used on Google Sheets.
//
// By: Manoel Lemos / manoel@lemos.net / http://manoellemos.com
//
// IMPORTANT: I added some code in the begining of the function to try to solve the issues
@barseghyanartur
barseghyanartur / docker_macos.rst
Last active March 15, 2026 18:21
Docker on macOs
@canghai118
canghai118 / iterm_smart_paste.sh
Created March 12, 2026 14:03
Paste Image to Remove Claude Code
#!/bin/bash
# iterm_smart_paste.sh — iTerm2 零配置剪贴板文件/图片粘贴
#
# 功能:
# 1. Finder 中复制的文件 → 保留原始文件名上传到远程
# 2. 截图/图片数据 → 以 clip_<时间戳>.png 上传
# 3. 自动检测当前 iTerm2 会话的 SSH 连接和远程主机
# 4. 超过 20MB 的文件自动跳过并提示
#
# iTerm2 快捷键设置:
@ossa-ma
ossa-ma / tropes.md
Last active March 15, 2026 18:19
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@AneurysAdames
AneurysAdames / office-activation.md
Created September 4, 2024 12:01
Office Activation Command by Omman

Office 2021

Method 1: Using my command line

Step 1.1: Open cmd program with administrator rights.

  • First, you need to open cmd in the admin mode, then run all commands below one by one.

Step 1.2: Get into the Office directory in cmd.

  • For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16